module StarRuby
  class Texture
    attr_accessor :last_method, :last_method_args
    
    attr_accessor :path
    def self.load path
      @path = path
      texture = new(1, 1)
      texture.path = path
      texture
    end
    
    def render_texture *args
      @last_method = :render_texture
      @last_method_args = args
    end
    
    def clear
      @last_method = :clear
      @last_method_args = []
    end
  end
  
  class Game
    class << self
      attr_accessor :last_method, :last_method_args
      
      def terminate
        @last_method = :terminate
        @last_method_args = []
      end
      
      attr_accessor :fps, :ticks
      attr_reader :screen
    end
    @fps = 30
    @ticks = 0
    @screen = StarRuby::Texture.new(640, 480)
  end
end
